how to calculate range of data types in c